# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

class Recipe(recipe.Recipe):
    name = 'mpc'
    version = '1.1.0'
    url = 'https://ftp.gnu.org/gnu/mpc/mpc-%(version)s.tar.gz'
    tarball_checksum = '6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e'
    stype = SourceType.TARBALL
    licenses = [License.LGPLv2_1Plus]
    configure_options = "--disable-shared --enable-static"
    deps = ['mpfr']

    async def configure(self):
        shell.call('chmod +w config.guess', self.build_dir)
        shell.call('chmod +w config.sub', self.build_dir)
        shell.call('chmod +w ltmain.sh', self.build_dir)
        await super(Recipe, self).configure()
